package com.bootdo.lvyou.domain;

import java.io.Serializable;
import java.util.*;

import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.bootdo.common.utils.StringUtils;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 景点门票
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-11 20:24:05
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class LvyouScenicTicket extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;
	
	//名字
		@HapiFeild("名字")
	private String name;


	//类型
		@HapiFeild("类型")
	private String type;
	
	//使用规则
		@HapiFeild("使用规则")
	private String context;
	
	//标签
		@HapiFeild("标签")
	private String lables;
		@NotColumn
	private List lablesList;
	
	//景点ID
		@HapiFeild("景点ID")
	private Long spotId;
	
	//景点名
		@HapiFeild("景点名")
	private String spotName;
	
	//
		@HapiFeild("")
	private Date createTime;

		@NotColumn
	private Double money ;

    public LvyouScenicTicket(){
    	this.money = -1d;
    	this.createTime = new Date();
    }

	public List getLablesList() {
    	if(StringUtils.isNotEmpty(this.lables)){
			return Arrays.asList(this.lables.split(","));
		}else{
    		return null;
		}
	}


	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：名字
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：名字
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：类型
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * 获取：类型
	 */
	public String getType() {
		return type;
	}
	/**
	 * 设置：使用规则
	 */
	public void setContext(String context) {
		this.context = context;
	}
	/**
	 * 获取：使用规则
	 */
	public String getContext() {
		return context;
	}
	/**
	 * 设置：标签
	 */
	public void setLables(String lables) {
		this.lables = lables;
	}
	/**
	 * 获取：标签
	 */
	public String getLables() {
		return lables;
	}
	/**
	 * 设置：景点ID
	 */
	public void setSpotId(Long spotId) {
		this.spotId = spotId;
	}
	/**
	 * 获取：景点ID
	 */
	public Long getSpotId() {
		return spotId;
	}
	/**
	 * 设置：景点名
	 */
	public void setSpotName(String spotName) {
		this.spotName = spotName;
	}
	/**
	 * 获取：景点名
	 */
	public String getSpotName() {
		return spotName;
	}
	/**
	 * 设置：
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：
	 */
	public Date getCreateTime() {
		return createTime;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
